import Vue from 'vue'
import VueRouter from 'vue-router'
import Register from '../views/Register'
import Login from '../views/Login'
import layout from '@/views/layout'
Vue.use(VueRouter)

const routes = [{
  path: '/',
  component: layout
}, {
  path: '/register',
  component: Register
},
{
  path: '/login',
  component: Login
}
]

const router = new VueRouter({
  mode: 'history',
  // base: process.env.BASE_URL,
  routes
})

export default router
